FROM openjdk:8-jre

MAINTAINER panweilei

RUN mkdir -p /home/ruoyi/server/logs


WORKDIR /home/ruoyi/server

ENV SERVER_PORT=8090 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""

EXPOSE ${SERVER_PORT}

ADD ./jar/ruoyi-radius.jar ./app.jar

ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \
           -XX:+HeapDumpOnOutOfMemoryError ${JAVA_OPTS} \
           -jar app.jar